package com.pony.service;


import com.pony.dto.EmployeeLoginDTO;
import com.pony.entity.Employee;
import com.baomidou.mybatisplus.extension.service.IService;
import com.pony.result.R;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author pony
 * @since 2023-11-16
 */
public interface IEmployeeService extends IService<Employee> {

    /**
     * 验证码接口-以流的形式写回验证码图片
     * @param request
     * @param response
     */
    void getVerifyCode(HttpServletRequest request, HttpServletResponse response);

    /**
     * 登录
     * @param dto
     * @param request
     * @return
     */
    R login(EmployeeLoginDTO dto, HttpServletRequest request);

    /**
     * 根据id，查询单个员工信息
     * @return
     */
    R getEmployeeInfoById();

    /**
     * 登出接口
     * @return
     */
    R logout();
}
